<link href="<?php echo base_url('resources')?>/css/admin/styles.css" rel="stylesheet" type="text/css" />
  

        <div id="dsLoaiDuAn"></div>
        <script type="text/javascript">
        
            //Prepare jTable
            $(document).ready(function () {
                $('#dsLoaiDuAn').jtable({
                    title: 'Danh sách các loại dự án:',
                    actions: {
                        listAction: '<?php echo base_url('admin/quanlyloaiduan/hienThiDanhSachLoaiDuAn'); ?>',
                        createAction: '<?php echo base_url('admin/quanlyloaiduan/themLoaiDuan'); ?>',
                        updateAction: '<?php echo base_url('admin/quanlyloaiduan/suaLoaiDuAn'); ?>',
                        deleteAction: '<?php echo base_url('admin/quanlyloaiduan/xoaLoaiDuAn'); ?>'
                    },
                    fields: {
                        MaLoaiDuAn: {
                            key: true,
                            edit: false,
                            title: 'Mã loại dự án',
                            width: '40%'
                        },
                        TenLoaiDuAn: {
                            title: 'Tên loại dự án',
                            width: '50%'
                        }
                    }
                });
                
                //Load duan list from server
                $('#dsLoaiDuAn').jtable('load');
            });

        </script>